﻿//
// Created by francklinson on 2021/3/13.
//

#include <iostream>

struct inflatable
{
    char name[20];
    float volume;
    double price;
};

int main()
{
    using namespace std;
    inflatable bouquet =
            {
                    "sunflowers",
                    0.20,
                    12.49
            };
    inflatable choice{}; // 初始赋值0
    cout << "bouquet: " << bouquet.name << " for $";
    cout << bouquet.price << endl;

    choice = bouquet; // assign one structure to another  成员赋值
    cout << "choice: " << choice.name << " for $";
    cout << choice.price << endl;
    return 0;
}